<?php
	
	namespace Aspic\UnitTest;
	
	use Aspic as A;

	class UnitTestResult {
		
		protected $successed;
		protected $testedMethod;

		public function __construct($success, callable $testedMethod) {
			$this->successed = (bool)$success;
			$this->testedMethod = $testedMethod;
		}
		
		public function hasSuccessed() {
			return $success;
		}
		
		public function setSuccessed($successed) {
			$this->successed = $successed;
		}
		
		public function setTestedMethod($testedMethod) {
			return $this->testedMethod = $testedMethod;
		}
		
		public function getTestedMethod() {
			return $this->testedMethod;
		}
		
		public function getResultString() {
			if (is_callable($this->testedMethod)) {
				// Get line and file where it is define
			}
			else {
				$testedMethodStr = $this->testedMethod;
			}
		}
		
	}
	
?>